package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class JinDaiPuHuiUtil {

    public static int getzhima(String zhima) {
        if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm005.getValue())) {
            return 725;
        } else if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm004.getValue())) {
            return 680;
        } else if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm003.getValue())) {
            return 630;
        }
        return 550;
    }


    public static String getSheBao(String shebao) {
        if (StrUtil.equals(shebao, BaseTypeInfoEnum.Shebao.sb001.getValue())){
            return "无";
        }
        return "有";
    }

    public static String getBaoDan(String baodan) {
        if (StrUtil.equals(baodan, BaseTypeInfoEnum.Baoxian.bx001.getValue())){
            return "无";
        }
        return "有";
    }

    public static Integer getloan(String loan) {
        if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la001.getValue())){
            return 3;
        } else if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la002.getValue())){
            return 5;
        } else  if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la003.getValue())){
            return 10;
        } else if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la004.getValue())){
            return 20;
        }
        return 30;
    }

    public static String getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())){
            return "无";
        }
        return "有";
    }

    public static String getGongZuo(String gongzuo) {
        if (StrUtil.equals(gongzuo, BaseTypeInfoEnum.Gongzuo.gz002.getValue())){
            return "无";
        }
        return "有";
    }

    public static String getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())){
            return "无";
        }
        return "有";
    }

    public static String getHouse(String house) {
        if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu001.getValue())){
            return "无";
        }
        return "有";
    }

}
